home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_975 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  1KB  |  51 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       _root.pepa.gotoAndPlay("bc");
  5.    }
  6.    else if(_root.poz == "d")
  7.    {
  8.       _root.pepa.gotoAndPlay("dc");
  9.    }
  10.    else if(_root.poz == "c")
  11.    {
  12.       if(_root.draglej == 0)
  13.       {
  14.          if(_root.izvuk == 1)
  15.          {
  16.             _root.loadzvuk.gotoAndPlay("zidtalk_talk");
  17.          }
  18.          else
  19.          {
  20.             _root.zidtalk.gotoAndPlay("talk");
  21.          }
  22.       }
  23.       else if(_root.draglej == 6)
  24.       {
  25.          stopDrag();
  26.          _root.itembar_refresh();
  27.          call("/:hide");
  28.          if(_root.izvuk == 1)
  29.          {
  30.             _root.loadzvuk.gotoAndPlay("zidtalk_a4");
  31.          }
  32.          else
  33.          {
  34.             _root.zidtalk.gotoAndPlay("a4");
  35.          }
  36.       }
  37.       else
  38.       {
  39.          _root.stopdragall();
  40.          if(_root.izvuk == 1)
  41.          {
  42.             _root.loadzvuk.gotoAndPlay("zidtalk_tonechci");
  43.          }
  44.          else
  45.          {
  46.             _root.zidtalk.gotoAndPlay("tonechci");
  47.          }
  48.       }
  49.    }
  50. }
  51.